﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
using seo.DAO;
using seo.Data;
using seo.dbutils;

namespace seo.Buz
{
    public class DbInfoBuz
    {
        public DbInfo getDbInfoByDomain(string domainname)
        {
            MySqlConnection conn = dbConnection.getLocalDbConnection();
            DbInfo dbInfo = null;
            try
            {
                conn.Open();
                DbInfoDao dao = new DbInfoDao(conn);
                dbInfo = dao.getDbInfoByDomain(domainname);
            }
            catch(Exception ex)
            {
                throw ex;
            }
            finally
            {
                conn.Close();
            }

            return dbInfo;

        }
    }
}
